package com.zhilei.deepseekdoctor.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 聊天消息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "chat_record")
public class ChatRecord {
    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 聊天内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 聊天类型
     */
    @TableField(value = "chat_type")
    private String chatType;

    /**
     * 聊天时间
     */
    @TableField(value = "chat_time")
    private LocalDateTime chatTime;

    /**
     * 家庭成员
     */
    @TableField(value = "family_member")
    private String familyMember;
}
